// ...mapMutations({
//     handlePlus: "count/increment",
//     handleMinu: "count/decrement",
//   }),
import store from "@/store";
export const myMapMutations = (options) => {
  let obj = {
    // handlePlus:()=>{
    //     this.$store.commit("count/increment"); //触发mutations执行
    // },
    // handlePlus:()=>{
    //     this.$store.commit("count/increment"); //触发mutations执行
    // },
  };
  for (let attr in options) {
    obj[attr] = (arg) => {
      store.commit(options[attr], arg);
    };
  }
  return obj;
};
